package com.meteor.util;

import com.meteor.pojo.Blog;

public class BeanUtils {

    public static void copy(Blog blog1, Blog blog2) {
        blog2.setId(blog1.getId());
        blog2.setAppreciation(blog1.getAppreciation());
        blog2.setCommentabled(blog1.getCommentabled());
        blog2.setContent(blog1.getContent());
        blog2.setCreateTime(blog1.getCreateTime());
        blog2.setFirstPicture(blog1.getFirstPicture());
        blog2.setFlag(blog1.getFlag());
        blog2.setPublished(blog1.getPublished());
        blog2.setRecommend(blog1.getRecommend());
        blog2.setShareStatement(blog1.getShareStatement());
        blog2.setTitle(blog1.getTitle());
        blog2.setUpdateTime(blog1.getUpdateTime());
        blog2.setViews(blog1.getViews());
        blog2.setTypeId(blog1.getTypeId());
        blog2.setUserId(blog1.getUserId());
        blog2.setDescription(blog1.getDescription());
    }
}
